<ion-view view-title="首页">
    <ion-content class="">

        <ion-refresher pulling-text="刷新" on-refresh="refreshStore()">
        </ion-refresher>

        <div class="list card">
            <div class="item item-divider">请选择题目，开始对战吧</div>
            <div class="item item-body" id="tree-box">
                <ion-scroll direction="y" id="tree_scroll">
                    <div id="_tree"></div>
                </ion-scroll>
            </div>
        </div>

        <div class="qstores">
            <div class="list card store" ng-repeat="store in stores">
                <div class="item item-divider title">{{store.text}}
                    <span ng-if="store.favorite" style="color: #ff0000;">★推荐★</span>
                </div>
                <div class="item item-body">
                    <div>
                        <label class="item item-input">
                            <span class="input-label text-right" style="width: 80px;">挑战分:</span>
                            <span ng-bind="store.score | fen"></span>
                            <span class="input-label text-right" style="width: 80px;">时间:</span>
                            <span ng-bind="store.duration | miao"></span>
                        </label>
                        <label class="item item-input">
                            <span class="input-label text-right" style="width: 80px;">悬赏分:</span>
                            <span ng-bind="store.bounty | fen"></span>
                            <span class="input-label text-right" style="width: 80px;">练习分:</span>
                            <span ng-bind="store.drill | fen"></span>
                        </label>
                        <!--<label class="item item-input">
                            <span class="input-label text-right" style="width: 80px;">练习分:</span>
                            <span ng-bind="store.drill"></span>
                        </label>-->
                        <!--<label class="item item-input">
                            <span class="input-label text-right" style="width: 80px;">挑战分:</span>
                            <span ng-bind="store.score"></span>
                        </label>-->
                        <label class="item item-input">
                            <span class="input-label text-right" style="width: 80px;">适用职业:</span>
                            <span ng-bind="store.profession | zhiye"></span>
                        </label>
                    </div>
                    <div class="button-bar">
                        <a class="button button-positive"  ng-click="joinStore(store._id)">
                            进入题库
                        </a>
                    </div>
                </div>
            </div>
            <div class="text-center" style="margin-top:15px;">
                <a ng-show="showStoreMore" ng-click="moreStore()">更多</a>
            </div>

            <audio  src="/resources/enterPK_once.mp3" id="pkAudio" preload=""></audio>
        </div>
    </ion-content>
</ion-view>
